<link href="images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
	
}
.error{color:red;}
-->
</style>

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>

<script>
$(document).ready(function(){
	$("#domain").validate({
		rules:{
			   position_name:"required"
			  }
		,
		messages:{
			position_name:"Please input position name."
		},
		errorPlacement:function(error,element){
		error.appendTo(element.parent().parent().next().empty());
	   }
	});
});

</script>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">Add Position<span style="padding-left:160px;"><a href="adv_position_list.php">Position List</a></span></div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    <form name="form1" action="adv_position_add.php?act=<{if $id==""}>add<{else}>edit<{/if}>" method="post" id="domain"><input type="hidden" name="id" value="<{$id}>">
     <table width="100%" border="0" cellspacing="0" cellpadding="0" >
	 <br>	
     <tr  class="nowtable">
     <td class="left_bt2" style="padding-left:10px;" colspan="2">Add Position</td>
     </tr>	
     <tr>
     <td width="32%" height="40px" bgcolor="#f2f2f2" class="left_txt" style="padding-left:20px;" align="left">
     Position Name：<span style="padding-left:40px;"><input style="width:160px;" type="text" name="position_name" value="<{$list.position_name}>"><font style="padding-left:5px; size:auto" color="#FF0000">*</font></span>
     </td>
     <td class="left_txt"  bgcolor="#f2f2f2">&nbsp;</td>
     </tr>
     <tr>
     <td colspan="2" width="32%" height="40px" bgcolor="#f2f2f2" class="left_txt" style="padding-left:20px;" align="left">
     Position Width：<span style="padding-left:50px;"> <input style="width:60px;" type="text" name="adv_width" value="<{$list.adv_width}>">&nbsp;px</span>
     </td>
     </tr>
     <tr>
     <td colspan="2" width="32%" height="40px" bgcolor="#f2f2f2" class="left_txt" style="padding-left:20px;" align="left">
     Position Height：<span style="padding-left:50px;"> <input style="width:60px;" type="text" name="adv_height" value="<{$list.adv_height}>">&nbsp;px</span>
     </td>
     </tr>
     <tr>
     <td colspan="2" width="32%" height="50px" bgcolor="#f2f2f2" class="left_txt" style="padding-left:20px;" align="left">
     Description：<span style="padding-left:40px;"><textarea cols="40" rows="5" name="position_desc"><{$list.position_desc}></textarea></span>
     </td>
     </tr>

     <tr><td align="left" height="50px"  style="padding-left:200px"><input type="submit" name="submit" value="Submit"></td></tr>
     </table>
  </form>
    </td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
